package com.ruicar.afs.cloud.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruicar.afs.cloud.admin.entity.SysPermission;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * The interface SysPermissionMapper.
 * <p>
 * Created on 2019-02-20
 *
 * @author Fzero
 */
public interface SysPermissionMapper extends BaseMapper<SysPermission> {
	/**
	 * Find by user id list.
	 *
	 * @param userId the user id
	 * @return the list
	 */
	List<SysPermission> findByUserId(@Param("userId") Long userId);
}
